# ==========读取 db_config.ini 文件设置=================
import os
import configparser

base_dir = str(os.path.dirname(os.path.dirname(__file__)))
base_dir = base_dir.replace('\\', '/')
conf_path = base_dir + "/config/conf.ini"
# url_path = base_dir + "/config/url.ini"

cf = configparser.ConfigParser()   # configparser类来读取config文件
cf.read(conf_path)
RYST_first = cf.get("token", "RYST")
RYST = "RYST=" + RYST_first
print("readConfig.py读取到的get_token方法获取的cookie："+RYST)
# cf.read(url_path)
# base_url = cf.get("base_url", "url")
# print("readConfig.py读取到的配置url："+base_url)



